import request from "@/utils/request";

export function listBankCard(params) {
  return request({
    url: "/bank-card",
    method: "get",
    params,
  });
}

export function listPageBankCard(params) {
  return request({
    url: "/bank-card/page",
    method: "get",
    params,
  });
}

export function saveBankCard(params) {
  return request({
    url: "/bank-card",
    method: "post",
    data: params,
  });
}

export function updateBankCard(id,params) {
  return request({
    url: `/bank-card/${id}`,
    method: "put",
    data: params,
  });
}

export function deleteBankCard(id) {
  return request({
    url: `/bank-card/${id}`,
    method: "delete",
  });
}

export function deleteBatchBankCard(idList) {
  return request({
    url: `/bank-card/batch`,
    method: "delete",
    data: idList,
  });
}

export function getBankCardById(id) {
  return request({
    url: `/bank-card/${id}`,
    method: "get",
  });
}
